import { defHttp } from "@/utils/http";

// ERP 检查记录API
export const checkRecordApi = {
	// 获得检查记录分页
	checkRecordList: async (params: any) => {
		return await defHttp.get({ url: `/whs/check-record/page`, params });
	},
	// 新增检查记录
	checkRecordCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/check-record/create`, data });
	},

	// 修改检查记录
	checkRecordUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/check-record/update`, data });
	},

	// 删除检查记录
	checkRecordDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/check-record/delete?id=` + id });
	}
};
